﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace _048.资源冲突问题
{
	internal class Program
	{
		static void Main(string[] args)
		{
			StateObject state = new StateObject();
			for (int i = 0; i < 20; i++)
			{
				Thread t = new Thread(state.ChangeState);
				t.Start();
			}
		}
	}
}
